/* Lac Viet ERP                                                
 * Copyright (c) 2013 Lac Viet                                 
 * http://www.lacviet.com.vn                                   
 *=============================================================
 * File name            : CF_tblEmployees.cs         
 * Created by           : Auto - 04/23/2014 15:03:45                     
 * Last modify          : Auto - 04/23/2014 15:03:45                     
 * Version              : 1.0                                  
 * ============================================================
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace LineOfBusiness.Poco
{
	[Serializable]
	public partial class CF_tblEmployees : BaseEntity
	{
		public CF_tblEmployees()
		{
		}

	    #region Properties

		private string _EmployeeID;

        [Key]
		[RegularExpression(@"[a-zA-Z0-9_-]*")]
		[Required]
        [MaxLength(20)]
        public string EmployeeID 
		{ 
			get
			{
                return _EmployeeID;
			}
			set 
			{ 
                _EmployeeID = value;
			} 
		}

		private string _EmployeeName;
        [MaxLength(200)]
        public string EmployeeName 
		{ 
			get
			{
                return _EmployeeName;
			}
			set 
			{ 
                _EmployeeName = value;
			} 
		}

		private string _Address;
        [MaxLength(200)]
        public string Address 
		{ 
			get
			{
                return _Address;
			}
			set 
			{ 
                _Address = value;
			} 
		}

		private string _Phone1;
        [MaxLength(50)]
        public string Phone1 
		{ 
			get
			{
                return _Phone1;
			}
			set 
			{ 
                _Phone1 = value;
			} 
		}

		private string _Phone2;
        [MaxLength(50)]
        public string Phone2 
		{ 
			get
			{
                return _Phone2;
			}
			set 
			{ 
                _Phone2 = value;
			} 
		}

		private string _Email;
        [MaxLength(50)]
        public string Email 
		{ 
			get
			{
                return _Email;
			}
			set 
			{ 
                _Email = value;
			} 
		}

		private string _HandPhone;
        [MaxLength(50)]
        public string HandPhone 
		{ 
			get
			{
                return _HandPhone;
			}
			set 
			{ 
                _HandPhone = value;
			} 
		}

		private string _DepID;
        [MaxLength(20)]
        public string DepID 
		{ 
			get
			{
                return _DepID;
			}
			set 
			{ 
                _DepID = value;
			} 
		}

		private string _JobTitleID;
        [MaxLength(20)]
        public string JobTitleID 
		{ 
			get
			{
                return _JobTitleID;
			}
			set 
			{ 
                _JobTitleID = value;
			} 
		}

		private DateTime? _CreatedDate;
        public DateTime? CreatedDate 
		{ 
			get
			{
                return _CreatedDate;
			}
			set 
			{ 
                _CreatedDate = value;
			} 
		}

		private string _UserID;
        [MaxLength(20)]
        public string UserID 
		{ 
			get
			{
                return _UserID;
			}
			set 
			{ 
                _UserID = value;
			} 
		}
		/// <summary>
        /// Column: CF_tblDepartments.DepID
        /// </summary>
		public CF_tblDepartments CF_tblDepartments { get;set; }

		/// <summary>
        /// Column: MO_tblModels.EmployeeID
        /// </summary>
		public ICollection<MO_tblModels> MO_tblModels { get;set; }

		/// <summary>
        /// Column: CF_tblJobTitles.JobTitleID
        /// </summary>
		public CF_tblJobTitles CF_tblJobTitles { get;set; }


        #endregion
	}
}
